﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="asp.netWebForms.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户登录</title>
</head>
<body>
    <form id="form1" runat="server" style="width: 100%; text-align: center">

        <h1 style="color: orangered">欢迎登录！
        </h1>

        <div>
            <asp:Label runat="server" Text="用户名："></asp:Label>
            <asp:TextBox runat="server" ID="UserName"></asp:TextBox>
        </div>
        <div>
            <asp:Label runat="server" Text="密码："></asp:Label>
            <asp:TextBox runat="server" ID="Password"></asp:TextBox>
        </div>
        <div>
            <asp:Button ID="btnLogin" runat="server" Text="登录" OnClick="btnLogin_Click" />
        </div>
        <div>
            <asp:Label runat="server" ID="labelComment" ForeColor="Red"></asp:Label>
        </div>
    </form>
</body>
</html>
